import socket
addrinfo = socket.getaddrinfo('www.baidu.com', 443, socket.AF_INET, socket.SOCK_STREAM)
for into in addrinfo:
    print(into)